import * as actionType from './actionType';

export default (state = {}, action) => {
    switch (action.type) {
        case actionType.GETALLWARNING: {
            return { ...state,
                 warninglist: action.warninglist,
                 totalCount:action.totalCount
                 }
        }
        default:
            return state;
    }
}